package com.wn.class30.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * systemmenu
 * @author 
 */
@Data
@NoArgsConstructor
public class Systemmenu implements Serializable {
    /**
     * 功能ID
     */
    private Integer menuId;

    /**
     * 菜单连接
     */
    private String menuUrl;

    /**
     * 菜单等级
     */
    private Integer menuLevel;

    /**
     * 父级菜单ID
     */
    private Integer parentid;

    /**
     * 菜单描述
     */
    private List<Systemmenu> childrens = new ArrayList<>();
    private String menuDesc;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menuId=").append(menuId);
        sb.append(", menuUrl=").append(menuUrl);
        sb.append(", menuLevel=").append(menuLevel);
        sb.append(", parentid=").append(parentid);
        sb.append(", menuDesc=").append(menuDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public List<Systemmenu> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<Systemmenu> childrens) {
        this.childrens = childrens;
    }
}